Carbon


PBFlushForkSync

Header: Files.h Carbon status: Supported

Causes all data written to an open fork to be written to disk.

OSErr PBFlushForkSync (
    FSForkIOParam *paramBlock
);
paramBlock

A pointer to a parameter block

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

The actual fork contents are written to disk, as well as any other volume structures needed to access the fork. On HFS and HFS Plus, this includes the catalog, extents, and attribute B-trees; the volume bitmap; and volume header and alternate volume header (MDB, alterhate MDB), as needed.

On volumes that do not support PBFlushForkSync directly, the entire volume is flushed to be sure all volume structures associated with the fork are written to disk.

AVAILABILITY

Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)